package utils;

import android.content.Context;
import android.location.LocationManager;

/**
 * Created by Handreace on 2016/7/11.
 */
public class GpsUtil {

    private static LocationManager lManager;


    public static boolean isGpsOpen(Context mContext){
        lManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
        // 判断GPS是否正常启动
        if (lManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {

            return true;
        }
        return false;
    }
}
